package com.yeyks.consumer.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户推广佣金账单明细表
 * </p>
 *
 * @author yun
 * @since 2019-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserBill对象", description="用户推广佣金账单明细表")
public class UserBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "操作金额")
    @TableField("operator_amount")
    private Long operatorAmount;

    @ApiModelProperty(value = "当前账户余额")
    @TableField("avaliable_amount")
    private Long avaliableAmount;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "账单类型：1 充值 2 佣金 3、提现 4、消费")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "创建日期")
    @TableField("create_time")
    private Date createTime;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String OPERATOR_AMOUNT = "operator_amount";

    public static final String AVALIABLE_AMOUNT = "avaliable_amount";

    public static final String REMARK = "remark";

    public static final String TYPE = "type";

    public static final String CREATE_TIME = "create_time";

}
